package com.yanqu.road.entity.relatives;

import com.yanqu.road.entity.DataObject;

import java.util.Objects;

public class RelativesLetter extends DataObject {
    private long id;
    private long fromId;
    private long toId;
    private String content;
    private boolean isShow;
    private long createTime;
    private boolean isDelete;


    public long getId() {
        return id;
    }

    public void setId(long id) {
        if (id != this.id) {
            this.id = id;
            setUpdateOption();
        }
    }

    public long getFromId() {
        return fromId;
    }

    public void setFromId(long fromId) {
        if (fromId != this.fromId) {
            this.fromId = fromId;
            setUpdateOption();
        }
    }

    public long getToId() {
        return toId;
    }

    public void setToId(long toId) {
        if (toId != this.toId) {
            this.toId = toId;
            setUpdateOption();
        }
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        if (!Objects.equals(this.content, content)) {
            this.content = content;
            setUpdateOption();
        }
    }

    public boolean isShow() {
        return isShow;
    }

    public void setShow(boolean isShow) {
        if (isShow != this.isShow) {
            this.isShow = isShow;
            setUpdateOption();
        }
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        if (createTime != this.createTime) {
            this.createTime = createTime;
            setUpdateOption();
        }
    }

    public boolean isDelete() {
        return isDelete;
    }

    public void setDelete(boolean isDelete) {
        if (isDelete != this.isDelete) {
            this.isDelete = isDelete;
            setUpdateOption();
        }
    }
}
